package com.jrx.anytxn.param.mapper.ext;

import com.jrx.anytxn.param.entity.TlFilePaymentLog;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ExtTlFilePaymentLogMapper {

    int batchInsert(List<TlFilePaymentLog> items);

    void  batchDeleteBydate(@Param("date") Date date,@Param("tradeFlag") List<String> item);

    /**
     * 检查分区是否存在
     *
     * @param partition 分区名
     * @return int
     */
    int checkPartitionExists(String partition);

    /**
     * 删除分区
     *
     * @param partition 分区名
     */
    void deletePartition(@Param("partition")String partition);

    /**
     * 新建分区
     *
     * @param partition 分区名
     * @param value 值
     */
    void createPartition(@Param("partition") String partition,@Param("value") String value);

    List<TlFilePaymentLog> selectPaymentLogForBatch(Date tradeDate,List<String> tradeFlagList);

    void batchUpdateLogForBatch(List<TlFilePaymentLog> list);

}
